package itdfq.dfq.Creational_Pattern.chouxianggongchang;

/**
 * @Author GocChin
 * @Date 2021/3/20 14:25
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Clinet {
    public static void main(String[] args) {
        System.out.println("段方钦 18031210111");
        try {
            EFactory eFactory;
            Phone phone;
            Watch watch;
            eFactory = (EFactory) XMLUtil.getBean();
            phone=eFactory.productPhone();
            watch=eFactory.productWatch();
            phone.playGame();
            watch.see();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
